<template>
  <div class="about">
    <template class="dd">
    <div class="layout">
        <Layout>
            <Header>
                <Menu mode="horizontal" theme="dark" active-name="1">
                    <div class="layout-logo">
                      <img src="" alt="">
                    </div>
                    <div class="layout-nav">
                        <Dropdown>
                  <a href="javascript:void(0)">
                       用户信息
                      <Icon type="ios-arrow-down"></Icon>
                  </a>
              <DropdownMenu slot="list">
              <DropdownItem>退出登录</DropdownItem>
              
          </DropdownMenu>
           </Dropdown>
                        <!-- <MenuItem name="1">
                            <Icon type="ios-navigate"></Icon>
                            Item 1
                        </MenuItem>
                        <MenuItem name="2">
                            <Icon type="ios-keypad"></Icon>
                            Item 2
                        </MenuItem>
                        <MenuItem name="3">
                            <Icon type="ios-analytics"></Icon>
                            Item 3
                        </MenuItem>
                        <MenuItem name="4">
                            <Icon type="ios-paper"></Icon>
                            Item 4
                        </MenuItem> -->
                    </div>
                </Menu>
            </Header>
            <Layout class="dd">
                <Sider hide-trigger :style="{background: '#fff'}">
                    <Menu active-name="1-2" theme="light" width="auto"  :open-names="['1']">
                        <Submenu name="1">
                            <template slot="title">
                                <Icon type="ios-navigate"></Icon>
                                <span>试题管理</span>
                                
                            </template>
                            <MenuItem name="1-1" to="Text.vue">添加试题</MenuItem>
                            <MenuItem name="1-2">试题分类</MenuItem>
                            <MenuItem name="1-3">查看试题</MenuItem>
                        </Submenu>
                        <Submenu name="2">
                            <template slot="title">
                                <Icon type="ios-keypad"></Icon>
                                用户管理
                            </template>
                            <MenuItem name="2-1">添加用户</MenuItem>
                            <MenuItem name="2-2">用户展示</MenuItem>
                        </Submenu>
                        <Submenu name="3">
                            <template slot="title">
                                <Icon type="ios-analytics"></Icon>
                                考试管理
                            </template>
                            <MenuItem name="3-1">添加考试</MenuItem>
                            <MenuItem name="3-2">试题列表</MenuItem>
                        </Submenu>
                         <Submenu name="4">
                            <template slot="title">
                                <Icon type="ios-analytics"></Icon>
                                班级管理
                            </template>
                            <MenuItem name="3-1">班级管理</MenuItem>
                            <MenuItem name="3-2">教室管理</MenuItem>
                            <MenuItem name="3-2">学生管理</MenuItem>
                        </Submenu>
                         <Submenu name="5">
                            <template slot="title">
                                <Icon type="ios-analytics"></Icon>
                                阅卷管理
                            </template>
                            <MenuItem name="3-1">待批班级</MenuItem>
                            
                        </Submenu>
                    </Menu>
                </Sider>
                <Layout :style="{padding: '0 24px 24px'}">
                    <Breadcrumb :style="{margin: '24px 0'}">
                        <BreadcrumbItem>Home</BreadcrumbItem>
                        <BreadcrumbItem>Components</BreadcrumbItem>
                        <BreadcrumbItem>Layout</BreadcrumbItem>
                    </Breadcrumb>
                    <Content :style="{padding: '24px', minHeight: '280px', background: '#fff'}">
                        Content
                    </Content>
                </Layout>
            </Layout>
        </Layout>
    </div>
</template>
  </div>
</template>
<script>
export default {
  
}
</script>
<style scoped>
html,body,#app{
    width: 100%;
    height: 100%;
}
.layout{
    width: 100%;
    height: 100%;
    border: 1px solid #d7dde4;
    background: #f5f7f9;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.layout-logo{
    width: 100px;
    height: 30px;
    background: hotpink;
    border-radius: 3px;
    float: left;
    position: relative;
    top: 15px;
    left: 20px;
    
}
.layout-nav{
    width: 420px;
    margin: 0 auto;
    margin-right: 20px;
    
}
.dd{
    width: 100%;
    height: 100%;
}
</style>